package com.merchant.pojo;

/**
 * @ClassName: Goods
 * @Description: TODO 商品实体类
 * @author zgg
 * @date 2021-05-07 15:19:01
 */

import java.io.Serializable;

/**
 * @ClassName: Goods
 * @Description: TODO
 * @author zgg
 * @date 2021-05-07 15:27:49
 */
public class Goods  implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * @Fields gid TODO:商品编号
	 */
	private int gid;
	/**
	 * @Fields gname TODO:商品名称
	 */
	private String gname;
	/**
	 * @Fields gprice TODO:商品价格
	 */
	private double gprice;
	/**
	 * @Fields sid TODO:门店编号
	 */
	private int sid;
	/**
	 * @Fields discounter TODO:商品折扣
	 */
	private double discounter;
	/**
	 * @Fields tid TODO:商品种类编号
	 */
	private int tid;


	public  String getGphoto() {
		return gphoto;
	}

	public void setGphoto(String gphoto) {
		this.gphoto = gphoto;
	}

	/**
	 * @Fields ggrade TODO:商品评分
	 */
	private String gphoto;
	private int ggrade;
	private Store store;
	private Type type;

	public Store getStore() {
		return store;
	}

	public void setStore(Store store) {
		this.store = store;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public double getGprice() {
		return gprice;
	}

	public void setGprice(double gprice) {
		this.gprice = gprice;
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public double getDiscounter() {
		return discounter;
	}

	public void setDiscounter(double discounter) {
		this.discounter = discounter;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public int getGgrade() {
		return ggrade;
	}

	public void setGgrade(int ggrade) {
		this.ggrade = ggrade;
	}

	public Goods() {
		super();

	}

	public Goods(String gname, double gprice, int sid, double discounter, int tid, int ggrade,String gphoto) {
		this.gname = gname;
		this.gprice = gprice;
		this.sid = sid;
		this.discounter = discounter;
		this.tid = tid;
		this.gphoto = gphoto;
	}

	@Override
	public String toString() {
		return "Goods [gid=" + gid + ", gname=" + gname + ", gprice=" + gprice + ", sid=" + sid + ", discounter="
				+ discounter + ", tid=" + tid + ", ggrade=" + ggrade + "]";
	}

}
